package io.github.junxworks.qt.modules.bi.vo;

import java.util.List;
import java.util.Map;

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;

public class Series {

	/** name. */
	private String name;

	/** type. */
	private String type;

	/** stack. */
	private String stack;

	private Map<String, Object> label = Maps.newHashMap();

	/** data. */
	private List<Object> data = Lists.newArrayList();

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getStack() {
		return stack;
	}

	public void setStack(String stack) {
		this.stack = stack;
	}

	public List<Object> getData() {
		return data;
	}

	public void setData(List<Object> data) {
		this.data = data;
	}

	/**
	 * Adds the data.
	 *
	 * @param data the data
	 */
	public void addData(Object data) {
		this.data.add(data);
	}

	public Map<String, Object> getLabel() {
		return label;
	}

	public void addLable(String attr, Object obj) {
		this.label.put(attr, obj);
	}

}
